package com.zhm.demo.utils;

import net.iakovlev.timeshape.TimeZoneEngine;

import java.time.ZoneId;
import java.util.List;
import java.util.Optional;

public class Timezone {

    public static void main(String[] args) {
        TimeZoneEngine engine = TimeZoneEngine.initialize();
        Optional<ZoneId> maybeZoneId = engine.query(22.5445741, 114.0545429);
        List<ZoneId> zoneIds = engine.queryAll(22.5445741, 114.0545429);
        System.out.println(maybeZoneId.get());
        System.out.println(zoneIds);
    }
}
